package com.example.demo.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@Schema(description = "角色权限表单对象")
public class RolePermForm implements Serializable {
    @NotEmpty(message = "角色Id不能为空")
    @Schema(description = "角色Id")
    private String roleId;
    @NotNull(message = "权限Id不能为空")
    @Schema(description = "权限Id列表")
    private List<String> perms;
}
